import http from '@/utils/http'

// 获取我的保洁申请列表
export async function getMyListApi(parm){
  return await http.get("/api/userClean/myList", parm)
}

// 获取保洁申请列表(物业管理部人员)
export async function getListApi(parm){
  return await http.get("/api/userClean/list", parm)
}

// 新增保洁申请
export async function addApi(parm){
  return await http.post("/api/userClean", parm)
}

// 编辑保洁申请
export async function editApi(parm){
  return await http.put("/api/userClean", parm)
}

// 删除保洁申请
export async function deleteApi(parm){
  return await http.delete(`/api/userClean/${parm.cleanId}`)
}
